#include <stdio.h>

int fibonacci(int n)
{
    int ans;
    if (n == 0 || n == 1)
        ans = 1;
    else
        ans = fibonacci(n - 1) + fibonacci(n - 2);
    return ans;
}

int main()
{
    int nCase;
    for (scanf("%d", &nCase); nCase > 0; nCase--)
    {
        int n;
        scanf("%d", &n);
        printf("%d\n", fibonacci(n));
    }
    return 0;
}

